<?xml version="1.0" encoding="iso-8859-1"?>
<!DOCTYPE html 
     PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
     "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">

<html>
<head>
  <title>create_collection_owner_with (HaveSpecHelper)</title>
  <meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" />
  <link rel="stylesheet" href="../.././rdoc-style.css" type="text/css" media="screen" />
</head>
<body class="standalone-code">
  <pre><span class="ruby-comment cmt"># File vendor\plugins\rspec/spec/spec/matchers/have_spec.rb, line 4</span>
  <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">create_collection_owner_with</span>(<span class="ruby-identifier">n</span>)
    <span class="ruby-identifier">owner</span> = <span class="ruby-constant">Spec</span><span class="ruby-operator">::</span><span class="ruby-constant">Expectations</span><span class="ruby-operator">::</span><span class="ruby-constant">Helper</span><span class="ruby-operator">::</span><span class="ruby-constant">CollectionOwner</span>.<span class="ruby-identifier">new</span>
    (<span class="ruby-value">1</span><span class="ruby-operator">..</span><span class="ruby-identifier">n</span>).<span class="ruby-identifier">each</span> <span class="ruby-keyword kw">do</span> <span class="ruby-operator">|</span><span class="ruby-identifier">n</span><span class="ruby-operator">|</span>
      <span class="ruby-identifier">owner</span>.<span class="ruby-identifier">add_to_collection_with_length_method</span>(<span class="ruby-identifier">n</span>)
      <span class="ruby-identifier">owner</span>.<span class="ruby-identifier">add_to_collection_with_size_method</span>(<span class="ruby-identifier">n</span>)
    <span class="ruby-keyword kw">end</span>
    <span class="ruby-identifier">owner</span>
  <span class="ruby-keyword kw">end</span></pre>
</body>
</html>